﻿using Microsoft.AspNetCore.Identity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Com.JunCaiSoft.Permission.Entity
{
    /// <summary>
    /// 角色实体类
    /// </summary>
    public class Role : IdentityRole<Guid>
    {
        /// <summary>
        /// 排序编号
        /// </summary>
        public virtual Int64 Num { get; set; }
        /// <summary>
        /// 角色编码
        /// </summary>
        public virtual String NumCode { get; set; }
        /// <summary>
        /// 所属职位
        /// </summary>
        public virtual List<Position> Positions { get; set; }
        /// <summary>
        /// 角色权限树
        /// </summary>
        public virtual String AuthorizeTree { get; set; }
        /// <summary>
        /// 启用标记
        /// </summary>
        public virtual Int32 IsUsed { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime CreateTime { get; set; }
    }
}
